import {createApp} from 'vue'
import vant from 'vant'
import './style.css'
// 2. 引入组件样式
import 'vant/lib/index.css';
import App from './App.vue'

// 导入tailwind css
import "./styles/Tailwind.css"

// import router
import router from './router/index';

// import piain
import {createPinia} from 'pinia';
import {createPersistedState} from "pinia-plugin-persistedstate"

const pinia = createPinia();
pinia.use(createPersistedState({
    serializer: {   // 指定参数序列化器
        serialize: JSON.stringify,
        deserialize: JSON.parse
    }
}))

import VueResizeObserver from "vue-resize-observer";

import Plugin from "@/plugin"

createApp(App).use(VueResizeObserver).use(vant).use(router).use(Plugin).use(pinia).mount('#app')
